ostree.git
14 years agognomeos: Add ncurses to base
Colin Walters [Fri, 25 Nov 2011 17:01:38 +0000 (12:01 -0500)]
gnomeos: Add ncurses to base

14 years agocore: Minor code cleanup
Colin Walters [Fri, 25 Nov 2011 17:01:05 +0000 (12:01 -0500)]
core: Minor code cleanup

14 years agoostbuild: Rename osbuild to ostbuild, clean up old C files
Colin Walters [Fri, 25 Nov 2011 17:00:16 +0000 (12:00 -0500)]
ostbuild: Rename osbuild to ostbuild, clean up old C files

14 years agocore: Ad ot_clear_gvariant(), use it
Colin Walters [Tue, 22 Nov 2011 15:20:10 +0000 (10:20 -0500)]
core: Ad ot_clear_gvariant(), use it

This saves us a conditional.

14 years agognomeos: Make python actually work, install bash by default
Colin Walters [Tue, 22 Nov 2011 15:03:12 +0000 (10:03 -0500)]
gnomeos: Make python actually work, install bash by default

14 years agocore: A bit more daemon work
Colin Walters [Tue, 22 Nov 2011 15:02:49 +0000 (10:02 -0500)]
core: A bit more daemon work

14 years agocore: Move merge dirs code into gio utils
Colin Walters [Mon, 21 Nov 2011 20:03:09 +0000 (15:03 -0500)]
core: Move merge dirs code into gio utils

14 years agocore: Stub out a system daemon
Colin Walters [Mon, 21 Nov 2011 01:55:24 +0000 (20:55 -0500)]
core: Stub out a system daemon

14 years agognomeos: Check out both -base and -dev roots
Colin Walters [Mon, 21 Nov 2011 01:50:14 +0000 (20:50 -0500)]
gnomeos: Check out both -base and -dev roots

This makes it easier to boot into either.

14 years agoostree-init: Also trim trailing newline from arguments
Colin Walters [Mon, 21 Nov 2011 01:49:45 +0000 (20:49 -0500)]
ostree-init: Also trim trailing newline from arguments

Otherwise the parsed argument is corrupted.

14 years agoTODO: Update
Colin Walters [Mon, 21 Nov 2011 01:49:15 +0000 (20:49 -0500)]
TODO: Update

14 years agognomeos: Add -x86 tag to builds
Colin Walters [Sat, 19 Nov 2011 19:03:18 +0000 (14:03 -0500)]
gnomeos: Add -x86 tag to builds

Since later we'll want -x86_64 too.

14 years agocore: Rework argument parsing
Colin Walters [Sat, 19 Nov 2011 19:02:21 +0000 (14:02 -0500)]
core: Rework argument parsing

Default to /sysroot/ostree/repo when run as root.  Also better
handle the requires-repo flag.

14 years agognomeos: local-clone into built image
Colin Walters [Sat, 19 Nov 2011 15:52:17 +0000 (10:52 -0500)]
gnomeos: local-clone into built image

This way we have the whole history in the image, and we can start
to demo things like switching roots, pulling etc.

14 years agocore: Ensure data is properly initialized
Colin Walters [Sat, 19 Nov 2011 15:45:53 +0000 (10:45 -0500)]
core: Ensure data is properly initialized

Avoids a crash if we bail early.

14 years agocore: Add local-clone builtin
Colin Walters [Fri, 18 Nov 2011 23:50:53 +0000 (18:50 -0500)]
core: Add local-clone builtin

This is useful for converting between e.g. archive and non-archive
repositories.

14 years agocore: Also chown() after unpacking objects
Colin Walters [Fri, 18 Nov 2011 23:50:29 +0000 (18:50 -0500)]
core: Also chown() after unpacking objects

14 years agocore: Switch to GFile* for unpacking and storing objects
Colin Walters [Fri, 18 Nov 2011 21:14:01 +0000 (16:14 -0500)]
core: Switch to GFile* for unpacking and storing objects

14 years agocore: Expose API to get repository tmpdir
Colin Walters [Fri, 18 Nov 2011 21:01:28 +0000 (16:01 -0500)]
core: Expose API to get repository tmpdir

14 years agocore: Rework object iteration API to be GFile based and pass more data
Colin Walters [Fri, 18 Nov 2011 20:21:32 +0000 (15:21 -0500)]
core: Rework object iteration API to be GFile based and pass more data

It makes more sense to have e.g. the details of .packfile naming
inside the repo, and pass the expected checksum and type.

14 years agocore: Skip an unnecessary unlink() call
Colin Walters [Fri, 18 Nov 2011 14:41:36 +0000 (09:41 -0500)]
core: Skip an unnecessary unlink() call

14 years agocore: Have single "overwrite" flag instead of ignore_exists+force pair
Colin Walters [Fri, 18 Nov 2011 14:37:25 +0000 (09:37 -0500)]
core: Have single "overwrite" flag instead of ignore_exists+force pair

The default is always ignore_exists.  Also port the internals here
to use more GIO code, and stop using *at syscall variants since they're
only useful if used 100%.

14 years agocore: Convert public get_object_path() to GFile*
Colin Walters [Fri, 18 Nov 2011 14:04:25 +0000 (09:04 -0500)]
core: Convert public get_object_path() to GFile*

14 years agocore: More cleanup of GIO utility API
Colin Walters [Fri, 18 Nov 2011 13:42:18 +0000 (08:42 -0500)]
core: More cleanup of GIO utility API

14 years agocore: Use ot_gfile_ prefix for new local GFile creation function
Colin Walters [Fri, 18 Nov 2011 13:10:23 +0000 (08:10 -0500)]
core: Use ot_gfile_ prefix for new local GFile creation function

14 years agocore: Remove last user of g_file_new()
Colin Walters [Fri, 18 Nov 2011 13:02:19 +0000 (08:02 -0500)]
core: Remove last user of g_file_new()

14 years agocore: Add checksum builtin
Colin Walters [Fri, 18 Nov 2011 12:29:13 +0000 (07:29 -0500)]
core: Add checksum builtin

This necessitated reworking things so that builtins can specify no
--repo is required.

14 years agocore: Make checksum API also operate on directories
Colin Walters [Fri, 18 Nov 2011 11:34:54 +0000 (06:34 -0500)]
core: Make checksum API also operate on directories

14 years agocore: CHANGE CHECKSUM ALGORITHM, port checksum API to GFile
Colin Walters [Fri, 18 Nov 2011 00:32:01 +0000 (19:32 -0500)]
core: CHANGE CHECKSUM ALGORITHM, port checksum API to GFile

This commit originally was to port ostree_stat_and_checksum_file() to
GFile*, but I noticed that the checksum code was reading data in host
endianness.  Fix that while we're here.

This invalidates all existing repositories.

14 years agocore: Convert metadata parsing API to GFile
Colin Walters [Thu, 17 Nov 2011 23:36:57 +0000 (18:36 -0500)]
core: Convert metadata parsing API to GFile

14 years agocore: Use GFile for xattr API
Colin Walters [Thu, 17 Nov 2011 23:30:02 +0000 (18:30 -0500)]
core: Use GFile for xattr API

14 years agognomeos: Have commit-yocto-build make more assumptions
Colin Walters [Thu, 17 Nov 2011 23:29:32 +0000 (18:29 -0500)]
gnomeos: Have commit-yocto-build make more assumptions

This is so it's easier to use.

14 years agocore: Use ot_gfile_get_path_cached() pervasively
Colin Walters [Thu, 17 Nov 2011 23:23:36 +0000 (18:23 -0500)]
core: Use ot_gfile_get_path_cached() pervasively

This requires no free() calls and is just better.

14 years agognomeos: Refactor build so we can have separate runtime/devel images
Colin Walters [Thu, 17 Nov 2011 18:24:52 +0000 (13:24 -0500)]
gnomeos: Refactor build so we can have separate runtime/devel images

14 years agocore: Fix pull to actually download files too
Colin Walters [Thu, 17 Nov 2011 15:40:55 +0000 (10:40 -0500)]
core: Fix pull to actually download files too

14 years agocore: Should write remote refs in refs/<remote>/<branch>
Colin Walters [Thu, 17 Nov 2011 15:40:01 +0000 (10:40 -0500)]
core: Should write remote refs in refs/<remote>/<branch>

Not just refs/<branch>, otherwise multiple remotes conflict.

14 years agocore: Allow resolving e.g. "origin/master" as a rev
Colin Walters [Thu, 17 Nov 2011 15:36:04 +0000 (10:36 -0500)]
core: Allow resolving e.g. "origin/master" as a rev

Also:

* Disallow .. in revs to avoid looking outside where we should be
* Allow resolving empty revs

14 years agocore: Validate file names read from directory variants
Colin Walters [Thu, 17 Nov 2011 04:23:30 +0000 (23:23 -0500)]
core: Validate file names read from directory variants

In a future where we pull data from remote servers, we don't want
to allow path uplinks.

14 years agocore: diff: Correctly handle files changing type
Colin Walters [Thu, 17 Nov 2011 04:09:32 +0000 (23:09 -0500)]
core: diff: Correctly handle files changing type

14 years agotests: Fix number of tests
Colin Walters [Thu, 17 Nov 2011 03:51:56 +0000 (22:51 -0500)]
tests: Fix number of tests

14 years agocore: Flesh out diff a bit more
Colin Walters [Thu, 17 Nov 2011 03:43:26 +0000 (22:43 -0500)]
core: Flesh out diff a bit more

Now correctly notices changes to directory metadata (not just
contents).

14 years agocore: Fix a minor memory leak
Colin Walters [Thu, 17 Nov 2011 03:50:14 +0000 (22:50 -0500)]
core: Fix a minor memory leak

14 years agognomeos: Some tweaks to image content
Colin Walters [Thu, 17 Nov 2011 02:47:56 +0000 (21:47 -0500)]
gnomeos: Some tweaks to image content

14 years agocore: Implement diff command
Colin Walters [Wed, 16 Nov 2011 22:48:29 +0000 (17:48 -0500)]
core: Implement diff command

14 years agognomeos: Mounts work, far fewer boot errors
Colin Walters [Wed, 16 Nov 2011 17:51:24 +0000 (12:51 -0500)]
gnomeos: Mounts work, far fewer boot errors

14 years agognomeos: Import copy of initscripts from Poky edison release
Colin Walters [Tue, 15 Nov 2011 21:31:33 +0000 (16:31 -0500)]
gnomeos: Import copy of initscripts from Poky edison release

14 years agognomeos: sysvinit actually runs inside the chroot
Colin Walters [Tue, 15 Nov 2011 20:19:31 +0000 (15:19 -0500)]
gnomeos: sysvinit actually runs inside the chroot

14 years agocore: Add --print-packfile argument for show
Colin Walters [Tue, 15 Nov 2011 20:16:38 +0000 (15:16 -0500)]
core: Add --print-packfile argument for show

Just another debugging tool.

14 years agocore: We actually want rdev, not dev for devices
Colin Walters [Tue, 15 Nov 2011 20:15:46 +0000 (15:15 -0500)]
core: We actually want rdev, not dev for devices

14 years agocore: Actually delete old libostree
Colin Walters [Tue, 15 Nov 2011 15:44:23 +0000 (10:44 -0500)]
core: Actually delete old libostree

14 years agognomeos: Starting to get something bootable with yocto
Colin Walters [Tue, 15 Nov 2011 15:44:03 +0000 (10:44 -0500)]
gnomeos: Starting to get something bootable with yocto

14 years agobuild: Move sources into src/ again
Colin Walters [Mon, 14 Nov 2011 20:39:38 +0000 (15:39 -0500)]
build: Move sources into src/ again

This is necessary if we want to build when srcdir == builddir,
otherwise we blow up because "ostree" is a source directory and a
binary.

14 years agocore: Another GLib 2.30 build fix
Colin Walters [Mon, 14 Nov 2011 20:31:53 +0000 (15:31 -0500)]
core: Another GLib 2.30 build fix

14 years agocore: Fix build with glib 2.30
Colin Walters [Mon, 14 Nov 2011 20:26:45 +0000 (15:26 -0500)]
core: Fix build with glib 2.30

14 years agopull: Fix iteration over directories
Colin Walters [Mon, 14 Nov 2011 20:13:20 +0000 (15:13 -0500)]
pull: Fix iteration over directories

14 years agocore: Fix uninitialized variable
Colin Walters [Mon, 14 Nov 2011 20:09:00 +0000 (15:09 -0500)]
core: Fix uninitialized variable

14 years agocore: Support being built without libsoup-gnome
Colin Walters [Mon, 14 Nov 2011 20:08:09 +0000 (15:08 -0500)]
core: Support being built without libsoup-gnome

While bootstrapping gnomeos, it's really handy if we can be built
without pull support, because libsoup-gnome pulls in a huge set of
dependencies.

14 years agognomeos: Some yocto work
Colin Walters [Sun, 13 Nov 2011 23:53:14 +0000 (18:53 -0500)]
gnomeos: Some yocto work

14 years agognomeos: Initial work on switching to Yocto
Colin Walters [Sun, 13 Nov 2011 00:21:10 +0000 (19:21 -0500)]
gnomeos: Initial work on switching to Yocto

14 years agoMove debian based bits to debian/ subdirectory
Colin Walters [Sat, 12 Nov 2011 22:47:12 +0000 (17:47 -0500)]
Move debian based bits to debian/ subdirectory

This is in preparation for introducing a Yocto-based variant.

14 years agoSwitch to using explicit WARN_CFLAGS
Colin Walters [Fri, 11 Nov 2011 11:53:44 +0000 (06:53 -0500)]
Switch to using explicit WARN_CFLAGS

The rationale is documented well in the automake manual.

14 years agoosbuild: Version built artifacts
Colin Walters [Fri, 11 Nov 2011 11:44:22 +0000 (06:44 -0500)]
osbuild: Version built artifacts

14 years agoosbuild: Add some prototype python scripts
Colin Walters [Fri, 11 Nov 2011 03:12:26 +0000 (22:12 -0500)]
osbuild: Add some prototype python scripts

14 years agoREADME: Link to schroot and git-annex
Colin Walters [Thu, 10 Nov 2011 20:21:28 +0000 (15:21 -0500)]
README: Link to schroot and git-annex

14 years agoSwitch to LGPLv2+ for most code
Colin Walters [Thu, 10 Nov 2011 18:17:04 +0000 (13:17 -0500)]
Switch to LGPLv2+ for most code

Since we're making a shared library, it should be usable by non-GPL
apps.

To allow more code sharing between the core and the tests, move them
to the LGPLv2+ too.

A few bits of test and other code are still GPL.  See the new COPYING
file for more information.

14 years agoRename parallel-debian/ to gnomeos/
Colin Walters [Thu, 10 Nov 2011 17:07:15 +0000 (12:07 -0500)]
Rename parallel-debian/ to gnomeos/

14 years agoparallel-debian: Ensure we're not running make-base as root actually
Colin Walters [Thu, 10 Nov 2011 16:56:34 +0000 (11:56 -0500)]
parallel-debian: Ensure we're not running make-base as root actually

14 years agoparallel-debian: Support being run as non-root
Colin Walters [Thu, 10 Nov 2011 16:52:48 +0000 (11:52 -0500)]
parallel-debian: Support being run as non-root

14 years agoparallel-debian: Remove accidentally committed file
Colin Walters [Thu, 10 Nov 2011 16:36:08 +0000 (11:36 -0500)]
parallel-debian: Remove accidentally committed file

14 years agoREADME.md: Link to IPS
Colin Walters [Thu, 10 Nov 2011 14:43:22 +0000 (09:43 -0500)]
README.md: Link to IPS

14 years agocore: Stub out a diff API and builtin
Colin Walters [Thu, 10 Nov 2011 14:27:22 +0000 (09:27 -0500)]
core: Stub out a diff API and builtin

14 years agoparallel-debian: Exclude plymouth
Colin Walters [Thu, 10 Nov 2011 13:36:21 +0000 (08:36 -0500)]
parallel-debian: Exclude plymouth

Otherwise the boot will stall if there's no plymouth in the
target image.

14 years agoparallel: Ensure we have some crucial subdirectories of /var
Colin Walters [Thu, 10 Nov 2011 13:32:55 +0000 (08:32 -0500)]
parallel: Ensure we have some crucial subdirectories of /var

Also move sysroot creation up a step - each commit is kind of
expensive at present.

14 years agoparallel-debian: Remove hack to remove FIFO
Colin Walters [Wed, 9 Nov 2011 15:02:06 +0000 (10:02 -0500)]
parallel-debian: Remove hack to remove FIFO

We now support named pipes.

14 years agocore: Support named pipes
Colin Walters [Wed, 9 Nov 2011 14:08:58 +0000 (09:08 -0500)]
core: Support named pipes

This is mainly useful for sysvinit's "/dev/initctl".

14 years agocore: Actually return an error from fsck
Colin Walters [Wed, 9 Nov 2011 13:27:47 +0000 (08:27 -0500)]
core: Actually return an error from fsck

And add some tests that fsck reports an error.

14 years agoREADME: Make package discussion more useful
Colin Walters [Wed, 9 Nov 2011 12:56:43 +0000 (07:56 -0500)]
README: Make package discussion more useful

14 years agoparallel-debian: Update to latest
Colin Walters [Wed, 9 Nov 2011 11:19:24 +0000 (06:19 -0500)]
parallel-debian: Update to latest

14 years agocore: Add ot_util_variant_take_ref for older GLib versions
Colin Walters [Wed, 9 Nov 2011 11:13:26 +0000 (06:13 -0500)]
core: Add ot_util_variant_take_ref for older GLib versions

14 years agocore: Add internal GFile implementation for reading commits
Colin Walters [Mon, 7 Nov 2011 16:25:49 +0000 (11:25 -0500)]
core: Add internal GFile implementation for reading commits

The data structures we use for reading already-written commits versus
building them don't need to be the same.  It's cleaner if we can have
generic code which operates on a GFile implementation for reads,
because then we can share more generic code for walking and operating
on filesystem trees via GIO.

14 years agocore: Squash a memory leak while reading gvariants
Colin Walters [Wed, 9 Nov 2011 11:06:33 +0000 (06:06 -0500)]
core: Squash a memory leak while reading gvariants

14 years agotests: Add OT_TEST_DEBUG environment variable
Colin Walters [Wed, 9 Nov 2011 10:28:13 +0000 (05:28 -0500)]
tests: Add OT_TEST_DEBUG environment variable

14 years agocore: Add public API to get the path for an object
Colin Walters [Wed, 9 Nov 2011 00:38:42 +0000 (19:38 -0500)]
core: Add public API to get the path for an object

14 years agocore: Add API for just effectively stat()ing packed files
Colin Walters [Wed, 9 Nov 2011 00:37:41 +0000 (19:37 -0500)]
core: Add API for just effectively stat()ing packed files

This will allow us to implement more of a VFS-like API on top.

14 years agocore: Remove old commit API
Colin Walters [Wed, 9 Nov 2011 00:25:23 +0000 (19:25 -0500)]
core: Remove old commit API

This eliminates more now-dead code.

14 years agocore: Remove old wrapper functions in import path
Colin Walters [Wed, 9 Nov 2011 00:23:04 +0000 (19:23 -0500)]
core: Remove old wrapper functions in import path

Just code cleanup.

14 years agocore: Use temp dir when creating GVariant metadata
Colin Walters [Tue, 8 Nov 2011 23:17:07 +0000 (18:17 -0500)]
core: Use temp dir when creating GVariant metadata

14 years agootutil: Add some more GIO helpers
Colin Walters [Tue, 8 Nov 2011 23:13:48 +0000 (18:13 -0500)]
otutil: Add some more GIO helpers

14 years agoinit: Add new explicit temporary directory
Colin Walters [Tue, 8 Nov 2011 23:13:05 +0000 (18:13 -0500)]
init: Add new explicit temporary directory

This will be used to store all tempoary files.

14 years agocommit: Drop the ability to --add --remove
Colin Walters [Tue, 8 Nov 2011 23:11:42 +0000 (18:11 -0500)]
commit: Drop the ability to --add --remove

This forces us to have two code paths for doing a commit; let's just
drop this ability for now since it's not very useful.

14 years agocore: Silence gcc -Wall compiler warnings
Colin Walters [Mon, 7 Nov 2011 17:30:32 +0000 (12:30 -0500)]
core: Silence gcc -Wall compiler warnings

14 years agocore: Store filenames in sorted order
Colin Walters [Mon, 7 Nov 2011 17:26:47 +0000 (12:26 -0500)]
core: Store filenames in sorted order

I believe GHashTable order was stable for a given set of names, but
this will make it more explicit, and also allow for binary searching.

14 years agocore: Add missing null terminator in option parsing
Colin Walters [Sun, 6 Nov 2011 21:25:45 +0000 (16:25 -0500)]
core: Add missing null terminator in option parsing

14 years agocore: Unify queryinfo flags such that we just use stat/readlink
Colin Walters [Sun, 6 Nov 2011 21:24:11 +0000 (16:24 -0500)]
core: Unify queryinfo flags such that we just use stat/readlink

14 years agoTODO: Update a bit
Colin Walters [Sun, 6 Nov 2011 21:23:58 +0000 (16:23 -0500)]
TODO: Update a bit

14 years agoparallel-debian: Port to latest ostree
Colin Walters [Sun, 6 Nov 2011 20:47:00 +0000 (15:47 -0500)]
parallel-debian: Port to latest ostree

14 years agocore: Misc bugfixes for commit
Colin Walters [Sun, 6 Nov 2011 19:53:34 +0000 (14:53 -0500)]
core: Misc bugfixes for commit

14 years agoReorder compose and pull tests
Colin Walters [Fri, 4 Nov 2011 20:14:12 +0000 (16:14 -0400)]
Reorder compose and pull tests

14 years agotests: A few more compose tests
Colin Walters [Fri, 4 Nov 2011 20:13:21 +0000 (16:13 -0400)]
tests: A few more compose tests

14 years agocore: Make compose commits contain metadata about their composition
Colin Walters [Fri, 4 Nov 2011 17:42:05 +0000 (13:42 -0400)]
core: Make compose commits contain metadata about their composition

This allows tracking of their history better.